class LocalStorage {
  get (key) {
    const storg = localStorage.getItem(key)
    return storg ? JSON.parse(storg) : ''
  }

  set (key, data) {
    localStorage.setItem(key, JSON.stringify(data))
  }

  remove (key) {
    localStorage.removeItem(key)
  }

  clear () {
    localStorage.clear()
  }
}

export default new LocalStorage()
